package vmcs.entity;

// Copyright 1997 ISS.
// The contents contained in this document may not be reproduced in any
// form or by any means, without the written permission of ISS, other
// than for the purpose for which it has been supplied.
//
// Author: Olivo Miotto
//
//

import vmcs.entity.Store;

public class CashStore extends Store {

  public final static int INVALID_COIN_WEIGHT = 9999;

    public CashStore () {
    }
    
   public StoreItem getCoinItem(double weight){
       
       CashStoreItem csItem = (CashStoreItem)(items[0]);
       if( csItem != null )
           return csItem.checkWeight(weight);
       return null;
   }
}

